/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webtransac.comercial.entity;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author efranco
 */

public class Menu {
     private String idMenu;
     private String descripcion; 
     private List<Menu> children = new LinkedList<Menu>();
         
    public Menu() {
    }
    
     
    public Menu(String idMenu, String descripcion) {
        this.idMenu = idMenu;
        this.descripcion = descripcion;
    }

    public void addChild(Menu child) {
        if(child != null)
            children.add(child);
    }
 
    public void removeChild(Menu child) {
        if(child != null)
            children.remove(child);
    }
           
    public String getIdMenu() {
        return idMenu;
    }

    public void setIdMenu(String idMenu) {
        this.idMenu = idMenu;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }
     
    public List<Menu> getChildren() {
                   
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }
           
}
